{{define "item"}}
<link rel="stylesheet" href="/static/css/item.css">

<div class="operate">
        <button type="button"><a href="/Manage/user/addUser">添加</a></button>
    <form id="form" method="get" action="/Manage/user/index">
        <input type="submit" value="查询" style="right: 0px">
        <input type="text" name = "userName" placeholder="   请输入要查询的用户名" style="right: 76px; width: 30%; height: 28px">
    </form>
</div>
<div class="list">
        <table cellspacing="0">
            <tr>
                <th width="6%">序号</th>
                <th width="18%">用户名</th>
                <th width="20%">用户账号</th>
                <th width="20%">注册时间</th>
                <th width="20%">到期时间</th>
                <th width="8%">编辑</th>
                <th width="8%">删除</th>
            </tr>

            {{range $i, $v := .users}}
            <tr>
                <th>{{$i | ShowI}}</th>
                <th>{{$v.UserName}}</th>
                <th>{{$v.UserId}}</th>
                <th>{{$v.RegistTime.Format "2006.01.02 15:04:05"}}</th>
                <th>{{$v.DueTime.Format "2006.01.02 15:04:05"}}</th>
                <th><a href="/Manage/user/update?UserId={{$v.UserId}}">编辑</a></th>
                <th><a href="/Manage/user/delete?UserId={{$v.UserId}}" class="dels">删除</a></th>
            </tr>
            {{end}}

        </table>
</div>
    <div class="pagenation">
        <ul>
            <li1><a href="/Manage/user/index?pageIndex=1&userName={{.query}}">首页</a></li1>
            <li1><a href="/Manage/user/index?pageIndex={{.pageUp}}&userName={{.query}}">上一页 </a> </li1>
            <li1><a href="/Manage/user/index?pageIndex={{.pageDown}}&userName={{.query}}">下一页</a></li1>
            <li1><a href="/Manage/user/index?pageIndex={{.pageCount}}&userName={{.query}}">末页</a></li1>
            <li1>共{{.count}}条记录/共{{.pageCount}}页/当前第{{.pageIndex}}页</li1>
        </ul>
    </div>
{{end}}
